package com.hzdp.jvm;

public class ClassLoaderTree {

	public static void main(String[] args) {
		displayClassloader();
		displayClassloader();
	}

	private static void displayClassloader() {
		ClassLoader classLoader = ClassLoaderTree.class.getClassLoader();
		while(classLoader != null){
			System.out.println(classLoader);
			classLoader = classLoader.getParent();
		}
	}
}
